import request from '@/utils/request'

// 查询所有垃圾站列表
export function listAstation(query) {
  return request({
    url: '/ies/astation/list',
    method: 'get',
    params: query
  })
}

// 查询所有垃圾站详细
export function getAstation(id) {
  return request({
    url: '/ies/astation/' + id,
    method: 'get'
  })
}

// 新增所有垃圾站
export function addAstation(data) {
  return request({
    url: '/ies/astation',
    method: 'post',
    data: data
  })
}

// 修改所有垃圾站
export function updateAstation(data) {
  return request({
    url: '/ies/astation',
    method: 'put',
    data: data
  })
}

// 删除所有垃圾站
export function delAstation(id) {
  return request({
    url: '/ies/astation/' + id,
    method: 'delete'
  })
}
